# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python-google-cloud-resource-manager
_pkgname=google-cloud-resource-manager
pkgver=1.14.2
_pyver=3.13
pkgrel=1
pkgdesc='Google Cloud Resource Manager API client library.'
arch=('any')
url='https://pypi.org/project/google-cloud-resource-manager/#files'
license=('Apache')
depends=('python' 'python-google-cloud-core')
makedepends=('python-setuptools')
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz")
sha512sums=('862b16db91840648439b38b657f29c7f1399657ccfec762b25191533287a3fe536659a22c7df232cba0322f16abbb12ec7a490c07f7327378345acb4e1b88305')

build() {
  cd "$_pkgname-$pkgver"

  python setup.py build
}

package() {
  cd "$_pkgname-$pkgver"

  python setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build

  rm -rf "$pkgdir/usr/lib/python$_pyver/site-packages/tests/"
}

